﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    /// <summary>
    /// 体温台账
    /// </summary>
    public class TwtzModel
    {
        /// <summary>
        /// 体温台账主键ID
        /// </summary>
        public string TwtzId { get; set; }

        /// <summary>
        /// 单位ID
        /// </summary>
        public string UnitId { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 单位Code
        /// </summary>
        public string UnitCode { get; set; }

        /// <summary>
        /// 记录人员
        /// </summary>
        public string RecordPersonName { get; set; }

        /// <summary>
        /// 记录人员ID
        /// </summary>
        public string RecordPersonId { get; set; }

        /// <summary>
        /// 总测量人数
        /// </summary>
        public int TotalPerson { get; set; }

        /// <summary>
        /// 正常人员
        /// </summary>
        public int NormalPerson { get; set; }

        /// <summary>
        /// 异常人员
        /// </summary>
        public int AbnormalPerson { get; set; }

        /// <summary>
        /// 测量时间
        /// </summary>
        public DateTime OperateTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 是否提交 0：保存 1：提交
        /// </summary>
        public int IsCommit { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 测温人员
        /// </summary>
        public List<TemperaturePerson> TemperaturePerson { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public List<FileModel> files { get; set; }
    }

    /// <summary>
    /// 测温人员
    /// </summary>
    public class TemperaturePerson
    {
        /// <summary>
        /// 主键
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 单位ID
        /// </summary>
        public string UnitId { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitName { get; set; }

        /// <summary>
        /// 单位Code
        /// </summary>
        public string UnitCode { get; set; }

        /// <summary>
        /// 测温人员
        /// </summary>
        public string TemperaturePersonName { get; set; }

        /// <summary>
        /// 测温人员ID
        /// </summary>
        public string TemperaturePersonId { get; set; }

        /// <summary>
        /// 体温
        /// </summary>
        public decimal Temperature { get; set; }

        /// <summary>
        /// 关联体温台账ID
        /// </summary>
        public string TwtzId { get; set; }
    }
}
